package ModelLayer;


/**
 * Write a description of class Loan here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Loan
{
    private Person person;
    private DvdCopy nr;
    private String loanDate;
    private String returnDate;
    private AddressContainer aCon;
    private DvdContainer dCon;
    
    public Loan(Person person, DvdCopy nr, String loanDate, String returnDate)
    {
        this.person = person;
        this.nr = nr;
        this.loanDate = loanDate;
        this.returnDate = returnDate;
    }
    
    public void printInformation()
    {
        System.out.println("Name: " + person.getName());
        System.out.println("Copy nr: " + nr.getCopyNr());
        System.out.println("Loan date: " +loanDate);
        System.out.println("Return date: " +returnDate);
    }
    
    public Person getPerson()
    {
        return person;
    }
    
    public DvdCopy getNr()
    {
        return nr;
    }
    
    public String getLoanDate()
    {
        return loanDate;
    }
    
    public String getReturnDate()
    {
        return returnDate;
    }

    public void setPersonPhone(Person newPerson)
    {
        this.person = newPerson;
    }
    
    public void setId(DvdCopy newNr)
    {
        this.nr = newNr;
    }
    
    public void setLoanDate(String newLoanDate)
    {
        this.loanDate = newLoanDate;
    }
    
    public void setReturnDate(String newReturnDate)
    {
        this.returnDate = newReturnDate;
    }
}
